package com.mz.mattress.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mz.mattress.api.entity.SysParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysParamMapper extends BaseMapper<SysParam> {

    @Select("select * from biz_param where param_key=#{paramKey} limit 1")
    SysParam selectByParamKey(String paramKey);

    @Select("select * from biz_param where deleted=0")
    List<SysParam> list();

}
